package training.osms.presentation.product;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import training.framework.business.AbstractEntityController;
import training.framework.presentation.AbstractNewEntity;
import training.osms.business.controller.ProductController;
import training.osms.business.model.Product;
import training.osms.business.model.ProductSearchOptions;

@ManagedBean
@SessionScoped
public class NewProduct extends AbstractNewEntity<Integer, Product, ProductSearchOptions, ProductPanel>{

	private ProductController controller;
	
	public NewProduct(){
		super(Product.class,ProductPanel.class,"newProduct","O produto foi salvo com sucesso!");
		controller = new ProductController();
	}

	@Override
	protected AbstractEntityController<Integer, Product, ProductSearchOptions> getController() {
		return controller;
	}

}
